<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2016/12/2
 * Time: 9:21
 */

$hostname = gethostbyaddr("127.0.0.1");
echo $hostname;

$gethostname = gethostname();


echo $gethostname;